]> dgit.raspbian.org Git - gnome-shell.git/commit
MessageTray: don't list the sources all the time
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 12 May 2013 18:13:43 +0000 (20:13 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 12 May 2013 19:06:34 +0000 (21:06 +0200)
commitfa44dc7d1611786dc987e7767e1811801dc2d2b8
treeeab3dbf08d8481a7843b86f16c4d0ce21332a4ba
parentb0dc841e00d2f99af4bdfbe60800c74f0c89f50c
MessageTray: don't list the sources all the time

The point of a hash table is that you don't need to list all the
elements. To avoid that, keep a "clearableCount" in MessageTray,
which can be used by the message tray menu to show and hide the
clear item, and that is updated in constant time when sources
are added or removed.

https://bugzilla.gnome.org/show_bug.cgi?id=700194
js/ui/messageTray.js